//
//  EAppInfo.h
//  AppRanking
//
//  Created by Gang.Wang on 12-11-8.
//  Copyright (c) 2012年 Gang.Wang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface EAppInfo : NSObject
{
    NSString * appId_;
    NSArray * supportedDevices_;
    
    NSString * artworkUrl_;
    NSString * version_;
    
    NSString * appDescription_;
    float price_;   // @"1.99"
    
    NSDate * releaseDate_;
    NSString * sellerName_;
    
    NSString * currentcy_; // usd
    NSString * appName_;
    
    NSString * primaryGenreName_; //Lifestyle
    NSString * releaseNote_;
    
    NSString * trackCensoredName_;
    NSString * currentAdvisoryRating_;
    
    long long fileSize_;
    NSString * sellerUrl_;
    
    NSString * formattedPrice_; // Free || "$1.99"
    NSString * averageUserRatingForCurrentVersion_;
    
    int userRationCountForCurrentVersion_;    
    NSString * trackContentRating_;
    
    float averageUserRating_;    
    int userRatingCount_;
    
    BOOL free_;
}

@property (nonatomic, copy) NSString * appId;
@property (nonatomic, copy) NSArray * supportedDevices;

@property (nonatomic, copy) NSString * artworkUrl;
@property (nonatomic, copy) NSString * version;

@property (nonatomic, copy) NSString * appDescription;
@property (nonatomic, assign) float price;

@property (nonatomic, retain) NSDate * releaseDate;
@property (nonatomic, copy) NSString * sellerName;

@property (nonatomic, copy) NSString * currentcy;
@property (nonatomic, copy) NSString * appName;

@property (nonatomic, copy) NSString *  primaryGenreName;
@property (nonatomic, copy) NSString *  releaseNote;

@property (nonatomic, copy) NSString * trackCensoredName;
@property (nonatomic, copy) NSString * currentAdvisoryRating;

@property (nonatomic, assign) long long fileSize;
@property (nonatomic, copy) NSString * sellerUrl;

@property (nonatomic, copy) NSString * formattedPrice;
@property (nonatomic, copy) NSString * averageUserRatingForCurrentVersion;

@property (nonatomic, assign) int userRationCountForCurrentVersion;
@property (nonatomic, copy) NSString * trackContentRating;

@property (nonatomic, assign) float averageUserRating;
@property (nonatomic, assign) int userRatingCount;

@property (nonatomic, assign, getter = isFree) BOOL free;

@property (nonatomic, assign) BOOL isForiPhone;
@property (nonatomic, assign) BOOL isForiPad;
@property (nonatomic, assign) BOOL isForiPhoneAndiPad;

@property (nonatomic, assign) BOOL currentRequestPlatfromIsiPhone;



- (id) initWithJsonData:(NSData *) data;


@end
